package com.yvdedu.my161121.addressbook.biz.service;

import com.yvdedu.my161121.addressbook.biz.entity.Useable;
import com.yvdedu.my161121.addressbook.biz.entity.User;

import java.io.Serializable;
import java.util.List;

public interface LoginService {

     User login(String login, String password) throws LoginException,PasswordException;

     LoginService.UrlAccessTester getAccessUrls(int roleId);

     List<Useable> getMenuData(int roleId);

     interface UrlAccessTester extends Serializable{

         boolean isAccess(String url);
    }


     class LoginException extends Exception {
         private static final long serialVersionUID=1L ;
    }

     class PasswordException extends Exception {
         private static final long serialVersionUID=1L ;
    }

}
 
